package com.woniu.controller;

import com.woniu.service.HouseTypeService;
import com.woniu.uitls.ResponseUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/type")
public class HouseTypeController {
    @Resource
    private HouseTypeService houseTypeService;
    @GetMapping
    public ResponseUtil findAll(){
        return houseTypeService.findAll();
    }
}
